/**
 * 
 */
package org.t2.game.server.module.recharge.message;

import org.t2.game.server.foundation.player.PlayerInternalMessage;
import org.t2.game.server.module.recharge.model.RechargeOrder;

/**
 * @author YY
 *
 */
public class RechargeInternalMessage implements PlayerInternalMessage {
	private RechargeOrder rechargeOrder;
	
	public static RechargeInternalMessage of(RechargeOrder rechargeOrder) {
		RechargeInternalMessage message = new RechargeInternalMessage();
		message.rechargeOrder = rechargeOrder;
		return message;
	}
	
	@Override
	public long getPlayerId() {
		return rechargeOrder.getPlayerId();
	}

	public RechargeOrder getRechargeOrder() {
		return rechargeOrder;
	}
	
}
